<template>
<<<<<<< HEAD
  <div class="container-questions-choice">
    <el-card>
      <!-- 帅选区域 -->
      <!-- 新增试题 -->
      <el-row>
        <el-col>
          <el-button
            style="float: right"
            type="success"
            size="small"
            icon="el-icon-edit"
            @click="toQuestionsNew"
          >
            新增试题
          </el-button>
        </el-col>
      </el-row>
      <!-- 顶部表单 -->
      <QuestionsTopForm @search="getTopFormData" />
      <!-- 列表区域 -->
      <QuestionsTable ref="Table" :topFormData="topFormData" />
    </el-card>
=======
  <div class='container'>

>>>>>>> feature/questions-new
  </div>
</template>

<script>
<<<<<<< HEAD
import QuestionsTopForm from '../components/questions-topForm.vue'
import QuestionsTable from '../components/questions-table.vue'
export default {
  name: 'Choice',
  data () {
    return {
      topFormData: {}
    }
  },
  components: {
    QuestionsTopForm,
    QuestionsTable
  },
  created () {},
  methods: {
    // 获取表单提交的数据,并进行搜索
    getTopFormData (formData) {
      this.topFormData = formData
      // $refs是异步操作，如果需要立即响应加setTimeout
      setTimeout(() => {
        this.$refs.Table.getBasicsSubList()
      }, 0)
    },
    // 跳转到试题录入
    toQuestionsNew () {
      this.$router.push({
        path: 'new'
      })
    }
  }
=======

export default {
  components: {}
>>>>>>> feature/questions-new
}
</script>

<style scoped lang='scss'>
.container-questions-choice {
  padding: 20px;
}
</style>
